package com.tjian.fafa.user.base;

import com.tjian.fafa.user.base.chatServices.ChatServiceData;
import com.tjian.fafa.user.base.chatServices.FriendListInfo;
import com.tjian.fafa.user.base.chatServices.InitData;
import com.tjian.fafa.user.base.myNetwork.NetworkService;

public class CloseAll
{

    public static void closeAll()
    {
        ConnectedApp.getInstance().clearAll();

        try
        {
            NetworkService.getInstance().closeConnection();
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        try
        {
            InitData.closeInitData();
            FriendListInfo.closeFriendListInfo();
            ChatServiceData.closeChatServiceData();
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }

}
